package com.springdoor.goods.domain;

import com.springdoor.common.annotation.Excel;
import com.springdoor.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 商品图片对象 sprd_goods_img
 *
 * @author llshs
 * @date 2024-05-31
 */
public class SprdGoodsImg extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品参数id */
    private Long imgId;

    /** 商品编码 */
    @Excel(name = "商品编码")
    private String gNumber;

    /** 图片类型 */
    @Excel(name = "图片类型")
    private String imgType;

    /** 图片名称 */
    @Excel(name = "图片名称")
    private String imgName;

    /** 图片地址 */
    @Excel(name = "图片地址")
    private String imgPath;

    /** 显示顺序 */
    @Excel(name = "显示顺序")
    private Long orderNum;

    /** 删除标志（0代表存在 1代表删除） */
    @Excel(name = "删除标志", readConverterExp = "0=代表存在,1=代表删除")
    private String delFlag;

    public void setImgId(Long imgId)
    {
        this.imgId = imgId;
    }

    public Long getImgId()
    {
        return imgId;
    }

    public String getgNumber() {
        return gNumber;
    }

    public void setgNumber(String gNumber) {
        this.gNumber = gNumber;
    }

    public void setImgType(String imgType)
    {
        this.imgType = imgType;
    }

    public String getImgType()
    {
        return imgType;
    }
    public void setImgName(String imgName)
    {
        this.imgName = imgName;
    }

    public String getImgName()
    {
        return imgName;
    }
    public void setImgPath(String imgPath)
    {
        this.imgPath = imgPath;
    }

    public String getImgPath()
    {
        return imgPath;
    }
    public void setOrderNum(Long orderNum)
    {
        this.orderNum = orderNum;
    }

    public Long getOrderNum()
    {
        return orderNum;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("imgId", getImgId())
                .append("gNumber", getgNumber())
                .append("imgType", getImgType())
                .append("imgName", getImgName())
                .append("imgPath", getImgPath())
                .append("orderNum", getOrderNum())
                .append("delFlag", getDelFlag())
                .append("remark", getRemark())
                .toString();
    }
}
